@charset "utf-8";
/* Created by Toma on 2016年4月18日10:29:52*/

$theme: #dc545e; //主题色
$themeLine: #fdbabf; // line
$themeFont: #fff; //字
$defaultFont: #a3a3a3; //默认字

@import 'toma';
@include reset();
@include tools();

/* 结构 */
.content{
  margin: 0 15px;
}
.warpper{
  margin-bottom: 15px;
}
.index-wper{
  margin-top: 54px;
}
.gray{
  background: #f2f2f2;
}

/* 按钮 */
.btn-defaule{
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: 15px;
  background-color: $theme;
  color: $themeFont;
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  border: 0;
  border-radius: 4px;
}
.btn-content{
  width: 70%;
  padding-top: 20px;
  padding-bottom: 30px;
  margin: 0 auto;
}
.btn-dh{
  font-size: 17px;
  line-height: 38px;
  height: 38px;
  margin-bottom: 0;
}
.btn-gray{
  background: #e5e5e6;
  color: #666767;
}

/* header 用户信息 */
.header{
  background: $theme;
  color: $themeFont;
  padding: 20px 0;
  .userinfo{
    display: table;
    dt,
    dd{
      display: table-cell;
      vertical-align: middle;
    }
    dd{
      padding-left: 15px;
      line-height: 1.8;
      h2{
        font-size: 20px;
      }
      p{
        font-size: 16px;
      }
    }
    .user-head{
      display: block;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      overflow: hidden;
      img{
        width: 100%;
        height: 100%;
      }
    }
  }
}

/* 积分栏 */
.table-dist{
  //display: table;
  width: 100%;
  border-bottom: 1px solid $themeLine;
  font-size: 0;
  .points{
    display: inline-block;
    width: 50%;
    text-align: center;
    vertical-align: middle;
    padding: 16px 0;
    color: $theme;
    line-height: 1.3;
    overflow: hidden;
    &:first-child{
      border-right: 1px solid $themeLine;
    }
    p{
      font-size: 22px;
      font-weight: bold;
    }
    span{
      font-size: 14px;
    }
  }
}

/* 信息描述 */
.bewrite{
  font-size: 14px;
  line-height: 1.5;
  color: $defaultFont;
  p{
    margin-bottom: 10px;
  }
}
.be-tit{
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #646464;
  span{
    color: $theme;
  }
}

/* 弹出框样式 */
.red-tit{
  color: $theme;
  margin-bottom: 8px;
}

/* 赠品列表 */
.comlist{
  .item{
    display: table;
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    .item-left{
      img{
        width: 130px;
        height: 130px;
      }
      img.xs{
        width: 76px;
        height: 76px;
      }
    }
    .item-right{
      vertical-align: top;
      display: table-cell;
      padding-left: 10px;
      h2{
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 11px;
        height: 36px;
        overflow: hidden;
      }
    }
  }
}

/* 加减运算 */
.it-cli{
  margin-bottom: 10px;
  .inte{
    color: $theme;
    padding-top: 12px;
    &:before{
      content: "";
      display: inline-block;
      width: 13px;
      height: 13px;
      background-image: url();
      -webkit-background-size: contain;
      background-size: contain;
      background-repeat: no-repeat;
      vertical-align: -1px;
    }
  }
  .count{
    .it-ctrl{
      display: inline-block;
      font-style: normal;
      width: 30px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      border: 1px solid $themeLine;
      border-radius: 3px;
      color: $theme;
    }
    .number{
      border: 1px solid $themeLine;
      width: 40px;
      text-align: center;
      line-height: 30px;
      vertical-align: top;
      border-radius: 3px;
      font-size: 12px;
    }
  }
}

/* 楼层选择 */
.deline{
  padding: 0 15px;
  border-bottom: 1px solid $themeLine;
  .be-tit{
    margin-top: 18px;
    margin-bottom: 15px;
  }
}
.lc-tit{
  font-size: 14px;
  color: $defaultFont;
  margin-bottom: 15px;
}

/* 楼层表 */
.floor-sel{
  width: 100%;
  font-size: 0;
  margin-bottom: 15px;
  .item{
    display: inline-block;
    width: 33.33333%;
    height: 90px;
    line-height: 90px;
    margin-top: -1px;
    a{
      display: block;
      width: 100%;
      height: 100%;
      font-size: 18px;
      border: 1px solid $themeLine;
      border-right: 0;
      text-align: center;
      vertical-align: middle;
      color: $defaultFont;
    }
    &:nth-child(3n) a{
      border-right: 1px solid $themeLine;
    }
  }
}
.goods-img{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}


/* 积分列表 */
.ingte-con{
  padding: 15px 0;
  color: $defaultFont;
  h2{
    padding: 10px 0;
    color: #646464;
  }
  p{
    padding: 10px;
    border-top: 1px dotted $themeLine;
    &:last-child{
      border-bottom: 1px dotted $themeLine;
    }
  }
}


/* 礼金券 */
.ticket{
  display: block;
  position: relative;
  width: 100%;
  height: 120px;
  background: #74d2d4;
  padding: 10px;
  color: #fff;
  margin-bottom: 20px;
  &::before{
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: -10px;
    margin-left: -20px;
    border-radius: 0 0 20px 20px;
    width: 40px;
    height: 20px;
    background: #fff;
  }
  &::after{
    content: '';
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: url(../img/cac.png);

  }
  h2{
    margin-top: 28px;
    text-align: center;
  }
  p{
    text-align: center;
    line-height: 2;
    color: #9aeff1;;
  }
}

/* 小字*/
.smallfont{
  font-size: 13px;
  color: #777;
  padding-top: 7px;
}

/* 小屏优化 */
@media (max-width: 321px){
  .comlist .item .item-left img{
    width: 76px;
    height: 76px;
    padding-top: 1px;
  }
}